package com.designpattern.structure.adapter.newadapter;

import com.designpattern.structure.adapter.classadapter.SDCardImpl;

/**
 * @author Administration
 * @date 2021/10/15 - 16:25 - 星期五
 * @project lambda
 * @package com.designpattern.structure.adapter.newadapter
 * @by 晨
 */
public class test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        System.out.println(computer.readSD(new SDCardImpl()));

        System.out.println("------------");

        TFCard tfCard = new TFCardImpl();
        SDAdapterTF sdAdapterTF = new SDAdapterTF(tfCard);
        System.out.println(sdAdapterTF.readSD());
    }
}
